    class Dates
{
	private int day,month,year;
public void setDay(int d)
	{
	day=d;
}
public void setMonth(int m)
	{
	month=m;
}
public void setYear(int y)
	{
	year=y;
}
public int getDay()
	{
	return day;
	}
public int getMonth()
	{
	return month;
	}
public int getYear()
	{
	return year;
}
public void showDMY()
	{
System.out.println(day+":"+month+":"+year);
	}	
}
class MyMain 
{
	public static void main(String[] args) 
	{
		Dates md=new Dates();
		md.setDay(29);
		md.setMonth(8);
		md.setYear(1976);
		md.showDMY();

		Dates yd=new Dates();
		yd.setDay(13);
		yd.setMonth(12);
		yd.setYear(2006);
		yd.showDMY();

		Dates hd=new Dates();
		int dd,mm,yy;
		dd=Integer.parseInt(args[0]);
		mm=Integer.parseInt(args[1]);
		yy=Integer.parseInt(args[2]);
		hd.setDay(dd);
		hd.setMonth(mm);
		hd.setYear(yy);
		hd.showDMY();
	}
}
